<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/Public/foundation/foundation.min.css">
    <script src="/Public/foundation/foundation.min.js"></script>
    <script src="/Public/foundation/modernizr.js"></script>
    <script src="__FUND_JQ__"></script>
    <link rel="stylesheet" href="http://static.runoob.com/assets/foundation-icons/foundation-icons.css">
</head>
<body>
<nav class="top-bar" data-topbar>
    <ul class="title-area">
        <li class="name">
            <h1><a href="#">后台管理</a></h1>
        </li>
    </ul>
    <section class="top-bar-section">
        <ul class="right">
            <?php if($_SESSION['uname']== null): ?><li><a href="<?php echo U('login');?>">登录</a></li>
                <?php else: ?>
                <li><a href="">欢迎<?php echo (session('uname')); ?></a></li>
                <li><a href="<?php echo U('loginout');?>">退出</a></li><?php endif; ?>
        </ul>

    </section>
</nav>
<div>
    <div class="small-2 columns">
       <?php if(is_array($menus)): $i = 0; $__LIST__ = $menus;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><ul class="side-nav">
            <li><a href="<?php echo ($v["url"]); ?>"><?php echo ($v["mname"]); ?></a></li>
        </ul><?php endforeach; endif; else: echo "" ;endif; ?>
    </div>
    <div class="small-10 columns">
        
            <h2>欢迎光临后台管理</h2>
        
    </div>
</div>
</body>
</html>